package com.fsk.starter.config;

import lombok.Getter;
import lombok.Setter;
import org.springframework.boot.context.properties.ConfigurationProperties;

/**
 * Redis 默认配置参数
 * application.yml 配置属性格式 fsk.redis.host
 */
@ConfigurationProperties(prefix = "fsk.redis")
@Getter
@Setter
public class RedisProperties {
    private String redisIsOpen = "false";
    private String host = "localhost";
    private int port = 6379;
    //单位秒
    private int timeout = 10;
    private String password;
    private int poolMaxTotal = 500;
    private int poolMaxIdle = 500;
    private int poolMinIdle = 100;
    private int poolMaxWait = 500;

}
